package net.huashitong.ssydt.provider.pk.service;


import net.huashitong.ssydt.base.service.LongService;
import net.huashitong.ssydt.pk.entity.SsPkYzddMatchRecord;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.12.18
 */
@CacheConfig
public interface SsPkYzddMatchRecordService extends LongService<SsPkYzddMatchRecord> {

    /**
     * 获取当前比赛信息
     *
     * @return
     */
    SsPkYzddMatchRecord getNowYzddMatch();

    /**
     * @param matchRecordId
     * @return
     */
    @Cacheable("getYzddLastMatchRecordId")
    Long getLastMatchRecordId(Long matchRecordId);

    List<SsPkYzddMatchRecord> findNonFinal();

}
